package com.pingyougou;

import com.pingyougou.entity.TbGoods;
import com.pingyougou.service.IService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


@RestController
public class Controller1 {
    @com.alibaba.dubbo.config.annotation.Reference
    private IService iService;
    @RequestMapping("/list")
    public List<TbGoods> add(){
        System.out.println("hello");
        List<TbGoods> tbGoods = iService.find();
        System.out.println(tbGoods);
        return tbGoods;
    }
}
